<?php 
class course_model extends CI_Model{
	function User_model()
	{
		 'parent'||model();
	}


	 function selectcourse()
         {
			 $query = "SELECT * FROM courses_available where status=1";
	         $result=$this->db->query($query); 
  
         
	   if( $result->num_rows() > 0 ){
		   
		  return $result;
		 }
		 else{
		  return false;
		 }
	 
}
}
 ?>